import { BaseResultBean, RequestOptions } from '../bean/index'
import { ApiRequest } from '../api/index'


export class BaseViewModel {
  async get<T>(
    requestBean: RequestOptions
  ): Promise<T> {
    return ApiRequest.get<T>(requestBean)
  }


  async post<T>(
    requestBean: RequestOptions
  ): Promise<T> {
    return ApiRequest.post<T>(requestBean)
  }
}

